Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB: Add cursor Metrics #4114

Merged

Conversation

grubernaut
Copy link
Contributor

@grubernaut grubernaut commented May 7, 2018

Fixes: #3480

$ GOCACHE=off go test -v -tags=integration ./...
=== RUN   TestAddNonReplStats
--- PASS: TestAddNonReplStats (0.00s)
=== RUN   TestAddReplStats
--- PASS: TestAddReplStats (0.00s)
=== RUN   TestAddWiredTigerStats
--- PASS: TestAddWiredTigerStats (0.00s)
=== RUN   TestAddShardStats
--- PASS: TestAddShardStats (0.00s)
=== RUN   TestAddShardHostStats
--- PASS: TestAddShardHostStats (0.00s)
=== RUN   TestStateTag
--- PASS: TestStateTag (0.00s)
=== RUN   TestGetDefaultTags
--- PASS: TestGetDefaultTags (0.00s)
=== RUN   TestAddDefaultStats
--- PASS: TestAddDefaultStats (0.01s)
PASS
ok      github.com/influxdata/telegraf/plugins/inputs/mongodb   0.012s
$ ./telegraf --config ~/tele-conf --test
> mongodb,host=foo,hostname=127.0.0.1:27017 active_reads=1i,active_writes=0i,commands_per_sec=4i,cursor_no_timeout=0i,cursor_pinned=0i,cursor_timed_out=0i,cursor_total=0i,deletes_per_sec=0i,flushes_per_sec=0i,getmores_per_sec=0i,inserts_per_sec=0i,jumbo_chunks=0i,net_in_bytes=639i,net_out_bytes=27185i,open_connections=2i,percent_cache_dirty=0,percent_cache_used=0,queries_per_sec=2i,queued_reads=0i,queued_writes=0i,resident_megabytes=66i,total_available=0i,total_created=0i,total_in_use=0i,total_refreshing=0i,ttl_deletes_per_sec=0i,ttl_passes_per_sec=0i,updates_per_sec=0i,vsize_megabytes=1013i,wtcache_app_threads_page_read_count=0i,wtcache_app_threads_page_read_time=0i,wtcache_app_threads_page_write_count=22i,wtcache_bytes_read_into=0i,wtcache_bytes_written_from=39880i,wtcache_current_bytes=39003i,wtcache_max_bytes_configured=7778336768i,wtcache_pages_evicted_by_app_thread=0i,wtcache_pages_queued_for_eviction=0i,wtcache_server_evicting_pages=0i,wtcache_tracked_dirty_bytes=0i,wtcache_worker_thread_evictingpages=0i 1525703381000000000

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Fixes: influxdata#3480

```
$ GOCACHE=off go test -v -tags=integration ./...
=== RUN   TestAddNonReplStats
--- PASS: TestAddNonReplStats (0.00s)
=== RUN   TestAddReplStats
--- PASS: TestAddReplStats (0.00s)
=== RUN   TestAddWiredTigerStats
--- PASS: TestAddWiredTigerStats (0.00s)
=== RUN   TestAddShardStats
--- PASS: TestAddShardStats (0.00s)
=== RUN   TestAddShardHostStats
--- PASS: TestAddShardHostStats (0.00s)
=== RUN   TestStateTag
--- PASS: TestStateTag (0.00s)
=== RUN   TestGetDefaultTags
--- PASS: TestGetDefaultTags (0.00s)
=== RUN   TestAddDefaultStats
--- PASS: TestAddDefaultStats (0.01s)
PASS
ok      github.com/influxdata/telegraf/plugins/inputs/mongodb   0.012s
```

```
$ ./telegraf --config ~/tele-conf --test
> mongodb,host=foo,hostname=127.0.0.1:27017 active_reads=1i,active_writes=0i,commands_per_sec=4i,cursor_no_timeout=0i,cursor_pinned=0i,cursor_timed_out=0i,cursor_total=0i,deletes_per_sec=0i,flushes_per_sec=0i,getmores_per_sec=0i,inserts_per_sec=0i,jumbo_chunks=0i,net_in_bytes=639i,net_out_bytes=27185i,open_connections=2i,percent_cache_dirty=0,percent_cache_used=0,queries_per_sec=2i,queued_reads=0i,queued_writes=0i,resident_megabytes=66i,total_available=0i,total_created=0i,total_in_use=0i,total_refreshing=0i,ttl_deletes_per_sec=0i,ttl_passes_per_sec=0i,updates_per_sec=0i,vsize_megabytes=1013i,wtcache_app_threads_page_read_count=0i,wtcache_app_threads_page_read_time=0i,wtcache_app_threads_page_write_count=22i,wtcache_bytes_read_into=0i,wtcache_bytes_written_from=39880i,wtcache_current_bytes=39003i,wtcache_max_bytes_configured=7778336768i,wtcache_pages_evicted_by_app_thread=0i,wtcache_pages_queued_for_eviction=0i,wtcache_server_evicting_pages=0i,wtcache_tracked_dirty_bytes=0i,wtcache_worker_thread_evictingpages=0i 1525703381000000000
```
@grubernaut grubernaut force-pushed the add-mongo-cursor-metrics branch from a37fd3e to 30d653c Compare May 7, 2018 14:33
@danielnelson danielnelson added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin area/mongodb labels May 7, 2018
@danielnelson danielnelson added this to the 1.7.0 milestone May 7, 2018
@danielnelson danielnelson merged commit 4790a21 into influxdata:master May 7, 2018
jvrahav pushed a commit to jvrahav/telegraf that referenced this pull request May 9, 2018
arkady-emelyanov pushed a commit to arkady-emelyanov/telegraf that referenced this pull request May 18, 2018
maxunt pushed a commit that referenced this pull request Jun 26, 2018
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mongodb feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants